const { merge } = require('webpack-merge')
const webpack = require('webpack')
const common = require('./webpack.common.js')

module.exports = merge(common, {
    mode: 'development',
    devtool: 'inline-source-map',
    devServer: {
        port: 3000,
        hot: true,
        open: true,
        contentBase: 'public'
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ]
})